[Unit]
Description=kube-controller-manager
After=network.target

[Service]
Type=simple
ExecStart={{ kubernetes_path }}/server/bin/kube-controller-manager \
        --cluster-cidr {{ cluster_cidr_pods }} \
        --allocate-node-cidrs \
        --service-account-private-key-file {{ kubernetes_path }}/server/certs/ca-key.pem \
        --service-cluster-ip-range {{ cluster_cidr_service }} \
        --root-ca-file {{ kubernetes_path }}/server/certs/ca.pem \
        --v 2 \
        --kubeconfig {{ kubernetes_path }}/server/conf/kube-controller-manager.kubeconfig \
        --authentication-kubeconfig {{ kubernetes_path }}/server/conf/kube-controller-manager.kubeconfig \
        --authorization-kubeconfig {{ kubernetes_path }}/server/conf/kube-controller-manager.kubeconfig \
        --use-service-account-credentials=true \
        --leader-elect \
        --bind-address 127.0.0.1
Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target
